#ifndef __TEXT_3D_H__
#define __TEXT_3D_H__

class Text3D
{
public:
	Text3D(string strText, Point pos, float z, float size, Color color);
	~Text3D();

	void SetVisible(bool visible);
	void SetTextPos(Point pos);

	void Rotate(float angle);

private:
	void OnRender(float differTime);

private:
	bool m_bVisible;
	unsigned int* m_fontlist;
	size_t m_textlength;
	Point m_pos;
	float m_z;
	float m_size;
	float m_angle;

	Color m_color;

private:
	// Light values and coordinates
	static GLfloat whiteLight[];
	static GLfloat diffuseLight[];
	static GLfloat specular[];
	static GLfloat lightPos[];
};

#endif